package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.system.domain.JiajiaFankui;
import com.ruoyi.system.mapper.JiajiaFankuiMapper;
import com.ruoyi.system.service.IJiajiaFankuiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 意见反馈Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-13
 */
@Service
public class JiajiaFankuiServiceImpl implements IJiajiaFankuiService
{
    @Autowired
    private JiajiaFankuiMapper jiajiaFankuiMapper;

    /**
     * 查询意见反馈
     * 
     * @param id 意见反馈主键
     * @return 意见反馈
     */
    @Override
    public JiajiaFankui selectJiajiaFankuiById(Long id)
    {
        return jiajiaFankuiMapper.selectJiajiaFankuiById(id);
    }

    /**
     * 查询意见反馈列表
     * 
     * @param jiajiaFankui 意见反馈
     * @return 意见反馈
     */
    @Override
    public List<JiajiaFankui> selectJiajiaFankuiList(JiajiaFankui jiajiaFankui)
    {
        return jiajiaFankuiMapper.selectJiajiaFankuiList(jiajiaFankui);
    }

    /**
     * 新增意见反馈
     * 
     * @param jiajiaFankui 意见反馈
     * @return 结果
     */
    @Override
    public int insertJiajiaFankui(JiajiaFankui jiajiaFankui)
    {
        return jiajiaFankuiMapper.insertJiajiaFankui(jiajiaFankui);
    }

    /**
     * 修改意见反馈
     * 
     * @param jiajiaFankui 意见反馈
     * @return 结果
     */
    @Override
    public int updateJiajiaFankui(JiajiaFankui jiajiaFankui)
    {
        return jiajiaFankuiMapper.updateJiajiaFankui(jiajiaFankui);
    }

    /**
     * 批量删除意见反馈
     * 
     * @param ids 需要删除的意见反馈主键
     * @return 结果
     */
    @Override
    public int deleteJiajiaFankuiByIds(String ids)
    {
        return jiajiaFankuiMapper.deleteJiajiaFankuiByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除意见反馈信息
     * 
     * @param id 意见反馈主键
     * @return 结果
     */
    @Override
    public int deleteJiajiaFankuiById(Long id)
    {
        return jiajiaFankuiMapper.deleteJiajiaFankuiById(id);
    }
}
